package com.magold.event;

public class TargetEvent<T> extends Event {

	public TargetEvent(TargetResult<T> pResult) {
		super(pResult);
	}
	
	public TargetEvent(EventCondition pCondition, TargetResult<T> pResult) {
		super(pCondition, pResult);
	}
	
	public TargetEvent<T> copy(T pNewTarget) {
		@SuppressWarnings("unchecked")
		TargetResult<T> result = (TargetResult<T>) mResult;
		
		return new TargetEvent<T>(mCondition, result.copy(pNewTarget));
	}

}
